#include <iostream>
#include <vector>
#include <queue>
#include <algorithm>
#include <map>
#include <set>
#include <cstring>
#define endl "\n"
using namespace std;
map<string, int> mp;
int main()
{
	int k = 0,n=0;
	string a;
	cin >> n;
	while (n--) {
		cin >> a;
		mp[a]++;
		if (mp[a] == 1) {
			k++;
		}
		
	}
	cout << k;
	return 0;
}
